package com.zxl.live.tools.track;

import android.content.Context;

import com.zxl.live.tools.analytics.AnalyticsHelper;

/**
 * Created by Administrator on 2018/1/2.
 */

public enum StatisticsType {

    /**
     * 锁屏特效
     */
    SUI_SCREEN("sui_screen"),


    /**
     * 铃声
     */
    RINGTONE("ringtone"),

    /**
     * 壁纸
     */
    WALLPAPER("wallpaper"),

    /**
     * 应用锁主题
     */
    APP_LOCK_THEME("app_lock_theme"),

    /**
     * 来电秀
     */
    CALL_FLASH("call_flash"),

    /**
     * 锁屏主题
     */
    LOCK_THEME("lock_theme"),
    
    
    /**
     * 页面访问错误
     */
    LOAD_ERROR("load_error"),

    /**
     * 屏幕设置
     */
    SCREEN_SETTING("screen_setting"),

    /**
     * 应用锁推荐下载
     */
    DOWNLOAD_PRIVACY_APP("download_privacy_app"),

    /**
     * 主页
     */
    HOME_PAGE("home_page"),

    /**
     * 积分墙
     */
    ADS_OFFER("ads_offer"),

    /**
     * 锁屏通知广告
     */
    ADS_NOTIFY("ads_notify"),

    /**
     * 锁屏清理广告
     */
    ADS_CLEAN("ads_clean"),

    /**
     * 试试手气广告
     */
    ADS_SHUFFLE("ads_shuffle"),

    /**
     * 主页顶部广告
     */
    ADS_RECOMMEND("ads_recommend"),

    /**
     * 伪全屏广告
     */
    ADS_FULL_SCREEN("ads_full_screen"),

    /**
     * 键盘广告
     */
    ADS_KEY_BOARD("ads_key_board"),

    /**
     * 小米banner广告
     */
    ADS_XM_BANNER("ads_xm_banner"),

    KONGBU("kongbu_screen"),

    SYSTEM_ERROR("system_error"),

    ANIMATION("animation"),

    GIF("gif");

    private String name;

    StatisticsType(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void upload(Context context, String key, String value) {
        AnalyticsHelper.logEvent(new AnalyticsHelper.LogEvent(name).addParam(key, value));
    }

}
